import { get } from './request'

export class HomeApi {
  // 查询大屏基础信息
  static getBaseInfo(params) {
    return get('/luoshu-jcp/screen/obtainBaseInfo', { params })
  }

  // 订单统计
  static getOrderStats(params) {
    return get('/luoshu-jcp/screen/obtainOrderNumStatistics', { params })
  }

  // 销毁量统计
  static getDestroyStats(params) {
    return get('/luoshu-jcp/screen/destructionStatistics', { params })
  }

  // 销毁排程
  static getDestroyPlan(params) {
    return get('/luoshu-jcp/screen/destructionSchedule', { params })
  }

  /**
   * @name 各单位送销量统计
   * @param {object} params
   * @param {boolean} params.isAll 是否全部
   */
  static getDestroyDispatchStats(params) {
    return get('/luoshu-jcp/screen/deliverySalesStatistics', { params })
  }

  // 收检销储作业量统计
  static getJobVolumeStats(params) {
    return get('/luoshu-jcp/screen/jobVolumeStatistics', { params })
  }
}
